import {
  axios
} from '@/utils/request'

const api = {
  slideList: '/slide/list',
  slideEdit: '/slide/edit',
  slideDelete: '/slide/delete',
}

export default api

export function slideList(parameter) {
  return axios({
    url: api.slideList,
    method: 'get',
    params: parameter
  })
}

export function slideEdit(parameter) {
  return axios({
    url: api.slideEdit,
    method: 'post',
    data: parameter
  })
}

export function slideDelete(parameter) {
  return axios({
    url: api.slideDelete,
    method: 'post',
    data: parameter
  })
}
